import service from '@/utils/request'
export const divingGetCategory = (params) => {
  return service({
    url: '/diving/divingGetCategory',
    method: 'get',
    params
  })
}

export const divingGetidCategory = (params) => {
  return service({
    url:'/diving/divingGetidCategory',
    method:'get',
    params
  })
}

export const divingDeleteCategory = (params) => {
  return service({
    url:'/diving/divingDeleteCategory',
    method:'delete',
    params
  })
}

export const divingCreateCategory = (data) => {
  return service({
    url:'/diving/divingCreateCategory',
    method:'post',
    data
  })
}

export const divingUpdateCategory = (data) => {
  return service({
    url:'/diving/divingUpdateCategory',
    method:'put',
    data
  })
}
